//
//  SBTjgzListModel.m
//  BaiSiBuDeJie
//
//  Created by chaoyi on 16/8/24.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "SBTjgzListModel.h"

@implementation SBTjgzListModel


+ (instancetype)tjgzListModelWithDic:(NSDictionary *)dic{
    
    SBTjgzListModel *model = [[SBTjgzListModel alloc]init];
    
    [model setValuesForKeysWithDictionary:dic];
    
    return model;
}

+ (NSArray *)loadTjgzListData{

    NSString *path = [[NSBundle mainBundle]pathForResource:@"tjgz_list" ofType:@"plist"];
    
    NSArray *arr = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray *arrM = [NSMutableArray arrayWithCapacity:arr.count];
    
    for (NSInteger i = 0; i < arr.count; i++) {
        
        SBTjgzListModel *model = [SBTjgzListModel tjgzListModelWithDic:arr[i]];
        
        [arrM addObject:model];
    }
    
    return arrM.copy;
}

@end
